package exploit

import (
	"fmt"
	"github.com/Xyntax/CDK/pkg/lib"
)

// plugin interface
type TEST struct{}

func (p TEST) Desc() string {
	return "this is the test script"
}
func (p TEST) Run() bool {
	// if your script needs input, handle `var lib.Args["<args>"]` by yourself.
	// example
	fmt.Printf("%v", lib.Args["<args>"].([]string))

	// functional codes
	fmt.Printf("\n[test] run success\n")

	// return [true/false] when [normal exit/fatal]
	return true
}

func init() {
	plugin := TEST{}
	lib.Register("test-poc", plugin)
}
